# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-ovos-config
pkgver=0.0.11
pkgrel=1
pkgdesc="OVOS configuration manager library"
url="https://github.com/OpenVoiceOS/ovos-config"
arch="noarch"
license="Apache-2.0"
depends="
	py3-combo-lock
	py3-dateutil
	py3-ovos-utils
	py3-ovos-utils
	py3-rich-click
	py3-watchdog
	py3-yaml
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/OpenVoiceOS/ovos-config/archive/V$pkgver/ovos-config-$pkgver.tar.gz"
builddir="$srcdir/ovos-config-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	.testenv/bin/python3 -m installer .dist/*.whl
	.testenv/bin/python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
a82e9d70c1776331c8531e16a5941f2a975a0fc89f1c17e7ca2de094ff38b848adfde522e2310b65ccda8d74900f3031445cdcb5650e50adaf240bb6fd7a7e26  ovos-config-0.0.11.tar.gz
"
